﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using T5._3.Models;

namespace T5._3.Controllers
{
    public class DefaultController : Controller
    {
        // GET: Default
        public ActionResult Index()
        {
            return View();
        }
        [HttpPost]
        public ActionResult Index(Product s)
        {
            if (ModelState.IsValid)
            {
                ViewBag.Info = "输入完成!";
            }
            return View();
        }
    }
}